#!/bin/sh

CC=clang
CFLAGS="-g -DNMAX=100 -DKMAX=90 -ansi -x c -pipe"
out_file="severalstacks.elf64"
src_files="main.cpp SeveralStacks.cpp"

callf() {
	echo "$@"
	$@
}

all() {
	callf ${CC} ${CFLAGS} ${src_files} -o ${out_file}
}

clean() {
	callf rm -v $out_file
}

if [ "x$1" = "x" ] ; then
	all
else
	$1
fi
